<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<%@ include file="/WEB-INF/layout/header.jsp"%>
<h1>
   <fmt:message key="meterdata.list" />
</h1>
<div class="span-24">
<c:if test="${not empty meterData}">
   <ul>
   <c:forEach items="${meterData}" var="md">
      <li>  
         <a href="/meterdata/${md.id}">${md.facilityId}, ${md.readValue} (<fmt:formatDate value="${md.readTime}" pattern="dd.MM.yyyy" />)</a>
		<a href="/invoice/${md.id }"><fmt:message key="invoice.view" /></a>
      </li>
   </c:forEach>
   </ul>
</c:if>
   <a href="/meterdata/add"><fmt:message key="meterdata.add" /></a>
</div>

<%@ include file="/WEB-INF/layout/footer.jsp"%>